<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    *{
      margin: 0;
      padding: 0;
    }
    html,body {
      height: 100%;
    }
    .wrap{
      /* width: 800px; */
      height: 100%;
      background: #ccc;
      padding-left: 150px;
      padding-right: 200px;
    }
    .center{
      float: left;
      width: 100%;
      height: 100%;
      background: red;
    }
    .left{
      width: 150px;
      height: 100%;
      float: left;
      background: blue;
      position: relative;
      left: -100%;
      margin-left: -150px;
    }
    .right{
      width: 200px;
      height: 100%;
      float: left;
      background: green;
      /* position: absolute; */
      margin-right: -200px;
    }
  </style>
</head>
<body>
  <div class="wrap">
    <div class="center"></div>
    <div class="left">150px</div>
    <div class="right">200px</div>
  </div>
</body>
</html>
<!-- 
  圣杯布局用于三栏布局(两边固定，中间自适应)

  中间部分写在最前面
  三部分全部浮动
  左边
    position: relative;
    margin-left: -150px;

  右边
    margin-right: -200px;
 -->